package com.StarStudio.Service;


import com.ruoyi.common.core.Entity.Result;
import com.ruoyi.common.core.Entity.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient(value = "UserInfo")
public interface UserInfoService {



    @RequestMapping("/findByUserId/{userId}")
    UserInfo findByUser_id(@PathVariable(value = "userId") long userId);

    @PutMapping("/put")
    Result updateUserInfo(@RequestBody UserInfo userInfo);












}
